package com.zq.ssmdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zq.ssmdemo.pojo.Departments;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 部门信息表 Mapper 接口
 * </p>
 *
 * @author 张乔
 * @since 2024-06-09
 */
@Mapper
public interface DepartmentsMapper extends BaseMapper<Departments> {

    @Update("update departments set Description = #{Description}, Department_name =#{DepartmentName}" +
            " where Department_id=#{DepartmentId}")
    void updateByIdss(Departments departments);
@Delete("delete from departments where Department_id=#{id}")
    void deleteByIdss(Integer id);
}
